﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WpfDataBingding.DevTreeData
{
    public class DevType
    {
        string typeName;
        static string iconPah="E:/vs2008工作区/cview/WpfDataBingding/WpfDataBingding/image/DevIcon/";//图标保存路径
        string iconName;//图标名称




        public DevType()
        { 
            
        }


        static public string IconPah
        {
            get { return iconPah; }
            set { iconPah = value; }
        }

        public string IconName
        {
            get { return iconName; }
            set { iconName = value; }
        }

        public string IconFullName
        {
            get 
            {
                if (iconPah[iconPah.Length - 1] == '/')
                {
                    return iconPah + iconName;
                }
                else
                {
                    return iconPah +"/"+ iconName;
                }
            }            
        }

        public string TypeName
        {
            get { return typeName; }
            set { typeName = value; }
        }

        public bool isEqual(DevType dtype)
        {
            if (this.typeName.Equals(dtype.typeName))
                return true;
            return false;
        }
    }
}
